﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;

namespace FinalShellOffLineActivate
{
    internal class Program
    {



        static void Main(string[] args)
        {
            string input;
            do
            {
                Console.WriteLine("FinalShell离线激活码");
                Console.Write("请输入机器码:");
                string key = Console.ReadLine();
                Console.WriteLine("版本号 < 3.9.6 (旧版)");
                Console.WriteLine("高级版：" + CalculateHash.Md5($"61305{key}8552").ToLower().Substring(8, 16));
                Console.WriteLine("专业版：" + CalculateHash.Md5($"2356{key}13593").ToLower().Substring(8, 16));
                Console.WriteLine("版本号 >= 3.9.6 (新版)");
                Console.WriteLine("高级版：" + CalculateHash.CalculateKeccak384Hash(key + "hSf(78cvVlS5E").ToLower().Substring(12, 16));
                Console.WriteLine("专业版：" + CalculateHash.CalculateKeccak384Hash(key + "FF3Go(*Xvbb5s2").ToLower().Substring(12, 16));
                Console.Write("输入0退出:");
                input = Console.ReadLine();
            } while (input.ToLower() != "0");
        }
    }

}